var vehiclePrototype = {
	init:function(carModel){
		this.model = carModel;
	},
	getModel:function(){
		console.log("The model of this vehicla is.."+this.model);
	}
};

function vehicle(model){
	function F() {};
	F.prototype = vehiclePrototype;

	var f = new F();
	f.init(model);
	return f;
}

var car = vehicle("Ford Escort");
car.getModel();